Analog to Digital Conversion
Speak into your microphone to capture your voice, see the conversion, and hear the result.
This simulation is highly interactive and visually detailed. For the best experience, we strongly recommend using a desktop or laptop computer.
Disclaimer: The audio processing and speech recognition are performed locally in your browser. No data is sent to any server. Performance may vary based on your device and browser.
Speak into your microphone to capture your voice, see the conversion, and hear the result.
xd[n] = Q(xa(nTs))
Step Size (Δ): 0.125 V
Orig. Loudness
- dBFS
Quant. Loudness
- dBFS
Speed of Sound
343 m/s
Analog vs Digital Waveform
Frequency Spectrum (FFT)
Analog-to-Digital Conversion is the process of converting a continuous analog signal, like the sound of your voice, into a discrete digital signal that a computer can understand and process. This is fundamental to all modern digital audio. The process involves three main steps: Sampling, Quantization, and Encoding.
Sampling is the first step, where we take snapshots of the analog signal at regular, discrete intervals of time. The rate at which we take these snapshots is called the Sampling Rate (fs). In this simulation, you control the 'Number of Samples' taken over a fixed duration.
Ts = 1/fs.xa(nTs), which means the value of the analog signal xa at the time of the n-th sample.After sampling, each sample still has a continuous amplitude. Quantization approximates this continuous amplitude to the nearest value from a finite set of discrete levels. The precision of this step is determined by the number of Quantization Bits (N).
L = 2N.24 = 16 distinct levels.Δ = Vrange / L, where Vrange is the total possible voltage or amplitude range of the signal.In the final step, each quantized level is assigned a unique binary code. With N bits, we can represent L = 2N levels. The simulation shows this binary string for each sample in the 3D view and the digital stream output.
The entire process can be summarized by the formula you see on the control panel:
xd[n] = Q(xa(nTs))
This means the n-th sample of the final digital signal (xd[n]) is the result of applying the Quantization function (Q) to the sampled analog signal (xa(nTs)).
The simulation also calculates the speed of sound based on the air temperature you set. The approximate formula used is:
v ≈ 331.3 + 0.606 × T
Where 'v' is the speed in meters per second (m/s) and 'T' is the temperature in degrees Celsius (°C).